package app.textures 
{
	import drawing.IPalette;
	import flash.display.BitmapData;
	import flash.display.DisplayObject;
	/**
	 * ...
	 * @author Dmitriy Gaiduk
	 */
	public class TextureInfo 
	{
		public var texture:BitmapData = null;
		public var color:uint;
		public var texturePreview:DisplayObject;
		public var name:String;
		public var previewURL:String;
		public var sourceURL:String;
		//public var id:String;
		public var parts:Vector.<TexturePartInfo>;
		
		public function TextureInfo(textureName:String = "")
		{
			//texture = textureBM;
			name = textureName;
		}
		
		public function addTexturePart(partInfo:TexturePartInfo):void
		{
			if (parts == null)
			{
				parts = new Vector.<TexturePartInfo>();
			}
			parts.push(partInfo);
		}
		
		/**
		 * Warning - not implemented!!
		 * @return
		 */
		public function clone():TextureInfo
		{
			var cloneTextureInf:TextureInfo = new TextureInfo(name);
			cloneTextureInf.color = color;
			
			
			return cloneTextureInf;
		}
		
	}

}